// 企微二维码
import { View, Text,Image } from '@tarojs/components'
import { useState } from 'react'
import './index.scss'
import { setGlobalData, getGlobalData } from "../../globalData";
let isDev = getGlobalData('isDev')
// 企业微信二维码
const testQr = 'https://wanhuhealth.oss-cn-beijing.aliyuncs.com/static/mini-jifen/images/qiwei/qiwei-test-qr.jpg'
const proQr = 'https://wanhuhealth.oss-cn-beijing.aliyuncs.com/static/mini-jifen/images/qiwei/qiwei-pro-qr-pro.jpg?v=2'
console.log('isDev',isDev)
export default function QiWeiQr () {
  const [qwQr] = useState<string>(isDev ? testQr : proQr)
  return (
    <View className='qr-wrap'>
      <View className='img-wrap'>
        <Image className="img" src={qwQr} mode="aspectFit" show-menu-by-longpress/>
      </View>
      <View className='tip'>长按识别二维码</View>
    </View>
  )
}